package fudan.se.project.repository.entity.conference.production;


import fudan.se.project.domain.conference.Conference;
import fudan.se.project.domain.conference.production.ReviewCopy;
import fudan.se.project.domain.conference.production.ReviewInfo;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ReviewCopyRepository extends CrudRepository<ReviewCopy, Long> {

    ReviewCopy findById(long id);

    ReviewCopy findByReviewInfo(ReviewInfo reviewInfo);

    ReviewCopy findByReviewInfoId(long reviewInfoId);

    List<ReviewCopy> findDistinctByReviewInfoPaperConference(Conference conference);
}
